#!/bin/bash
#https://ossrs.net/lts/zh-cn/docs/v4/doc/getting-started

docker run -dti --name srs \
-p 1935:1935 -p 1985:1985 -p 8080:8080 \
ossrs/srs ./objs/srs \
-c conf/docker.conf


# #支持WebRTC：需要设置CANDIATE，并开启UDP/8000端口
# CANDIDATE="192.168.1.10"
# docker run --rm -it -p 1935:1935 -p 1985:1985 -p 8080:8080 \
#     --env CANDIDATE=$CANDIDATE -p 8000:8000/udp \
#     registry.cn-hangzhou.aliyuncs.com/ossrs/srs:4 ./objs/srs -c conf/docker.conf


# docker run -dti --name srs \
# -p 1935:1935 -p 1985:1985 -p 8080:8080 \
# --network woniu_network \
# --ip 172.0.0.35 \
# --restart=always \    
# -v /home/docker/srs4/conf/:/usr/local/srs/conf/ \
# -v /home/docker/srs4/objs/:/usr/local/srs/objs/ \
# ossrs/srs

docker run -dti --name srs \
-p 1935:1935 -p 1985:1985 -p 8080:8080 -p 8000:8000/udp \
--ip 10.50.11.23 \
--restart=always \
-v ~/vm/srs/conf/:/usr/local/srs/conf/ \
-v ~/vm/srs/objs/:/usr/local/srs/objs/ \
ossrs/srs
